New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plat 9889 : Add support in eSearch aggregations #8504
Conversation
… Orion-15.1.0-PLAT-9889
… Orion-15.1.0-PLAT-9889-1
.../providers/elastic_search/lib/api/types/aggregations/items/KalturaESearchAggregationItem.php
Outdated
Show resolved
Hide resolved
|
||
private static $map_between_objects = array( | ||
'size', | ||
'fieldName' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$fieldName doesn't exists in this class
...rs/elastic_search/lib/api/types/aggregations/items/KalturaESearchCategoryAggregationItem.php
Outdated
Show resolved
Hide resolved
{ | ||
$responseBucket = new KalturaESearchAggregationBucket(); | ||
$responseBucket->fromArray($bucket); | ||
if($fieldName === ESearchCuePointsAggregationFieldName::TYPE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should compare $fieldName to the API enum, not to the core enum as it seems to be API since we assign it to aggs->fieldName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking the returned value from the core.
...s/elastic_search/lib/api/types/aggregations/items/KalturaESearchCuepointsAggregationItem.php
Outdated
Show resolved
Hide resolved
plugins/search/providers/elastic_search/lib/elasticSearchUtils.php
Outdated
Show resolved
Hide resolved
@@ -1,215 +1,224 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason, it thinks you changed the whole file is there a way to prevent it?
plugins/search/providers/elastic_search/lib/model/search/kBaseSearch.php
Outdated
Show resolved
Hide resolved
plugins/search/providers/elastic_search/services/ESearchService.php
Outdated
Show resolved
Hide resolved
plugins/search/providers/elastic_search/services/ESearchService.php
Outdated
Show resolved
Hide resolved
$agg->fieldName = $fieldName; | ||
$agg->name = ESearchCategoryAggregationItem::KEY; | ||
$bucketsArray = new KalturaESearchAggregationBucketsArray(); | ||
$buckets = $coreResponse[ESearchAggregations::BUCKETS]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$coreResponse should be validated.
...rs/elastic_search/lib/api/types/aggregations/items/KalturaESearchCategoryAggregationItem.php
Show resolved
Hide resolved
...iders/elastic_search/lib/api/types/aggregations/items/KalturaESearchEntryAggregationItem.php
Outdated
Show resolved
Hide resolved
*/ | ||
protected $size; | ||
|
||
protected $fieldName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing @var type
$this->size = $size; | ||
} | ||
|
||
public function getFieldName() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing notations
return $this->fieldName; | ||
} | ||
|
||
public function setFieldName($fieldName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing notations
No description provided.